package com.xuanwei.dao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2019-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class XwOrderStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ＩＤ
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 统计年
     */
    @TableField("statistics_year")
    private Integer statisticsYear;

    /**
     * 统计月
     */
    @TableField("statistics_month")
    private Integer statisticsMonth;

    /**
     * 金额(每次订单成功后加入该月)
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 退款金额
     */
    @TableField("refund")
    private BigDecimal refund;

    /**
     * 订单数量(不统计未支付的)
     */
    @TableField("order_count")
    private Integer orderCount;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
